<?php

/**
* 
*/
class StuModel extends Model
{
    public function int()
    {
        var_dump(__class__);
    }
    public $table = 'stu';
    public function getTopAge()
    {
        return $this->where(['sex'=>'男'])->order('age desc')->limit(1)->select();
    }
}